home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 2: CDPD 1 / Almathera Ten on Ten - Disc 2: CDPD 1.iso / pd / 276-300 / 299 / rxil / src / makefile < prev    next >
Makefile  |  1995-03-14  |  3KB  |  135 lines

  1. # ARexx Interface Library (Rxil) makefile
  2. # Lattice 'C'
  3.  
  4.  
  5. # Note that this makefile operates on a "replacement" basis.
  6. # Any library module which is added or changed will be merely replaced
  7. # in the library.  The implication is that if a module should be
  8. # deleted for whatever reason, it would remain in the library.
  9. # Removal should be done manually, or the library should be deleted,
  10. # a total rebuild performed.
  11.  
  12.  
  13.  
  14. # *** Change these to fit your system.
  15.  
  16. SRC=Cstuff:Mine/Lib/Rxil/
  17. OBJ=Cstuff:Mine/Lib/Rxil/obj/
  18. DEST=MyLib:
  19. S=myin:rxil.h
  20.  
  21.  
  22.  
  23. # On command line to make:
  24. #
  25. #        DFLAG=-d1        Line only debugging in CPR
  26. #        DFLAG=-d3        Full debugging in CPR
  27. #
  28. # Default here is to put a small amount of debugging info in.
  29. # Note that this define is used only for the demo, not the library
  30. # modules themselves.
  31. DFLAG = -d1
  32.  
  33.  
  34. # And override this with LDFLAG=NODEBUG
  35. LDFLAG = ADDSYM
  36.  
  37.  
  38.  
  39. LFLAGS= BATCH VERBOSE 
  40.  
  41. CFLAGS= -b1 -cft -mat -q3e -r1s -j85e86e87e88e -v
  42.  
  43.  
  44.  
  45. # Rule to make a 32 bit int object file (for the Library)
  46. .c.o:
  47.     lc $(CFLAGS) -d0 -o$@ $*.c
  48.     oml $(DEST)rxil.lib r $@
  49.  
  50.  
  51.  
  52.  
  53. all:    $(DEST)rxil.lib   demo
  54.  
  55.  
  56.  
  57. #---------------------   The Demo Program   -----------------------
  58.  
  59. demo:    demo.o
  60.     blink   $(LFLAGS) $(LDFLAG) \
  61.         FROM   LIB:c.o $?   LIB:rexxglue.o \
  62.         TO   $@ \
  63.         LIBRARY   LIB:lc.lib   LIB:amiga.lib   LIB:rxil.lib \
  64.         MAP $*.map F,H,L,O,S,X \
  65.  
  66. #        PLAIN  INDENT 0  HEIGHT 60  PWIDTH 20  SWIDTH 32  WIDTH 80
  67.  
  68.  
  69. demo.o:    demo.c    $S
  70.     lc $(CFLAGS) $(DFLAG) -o$@ $*.c
  71.  
  72.  
  73.  
  74. #--------------------   The Library   -----------------------------
  75.  
  76. # These are the library modules
  77. PIECES= $(OBJ)cancel.o \
  78.         $(OBJ)check_port.o \
  79.         $(OBJ)check_result.o \
  80.         $(OBJ)cleanup.o \
  81.         $(OBJ)console.o \
  82.         $(OBJ)create_rxi.o \
  83.         $(OBJ)delete_port.o \
  84.         $(OBJ)diag.o \
  85.         $(OBJ)dispatch.o \
  86.         $(OBJ)handle_return.o \
  87.         $(OBJ)init.o \
  88.         $(OBJ)launch.o \
  89.         $(OBJ)lock.o \
  90.         $(OBJ)misc.o \
  91.         $(OBJ)set_result.o \
  92.         $(OBJ)to_rexx.o
  93.  
  94.  
  95.  
  96. $(DEST)rxil.lib:    $(PIECES)
  97.  
  98.  
  99.  
  100.  
  101. $(OBJ)cancel.o:            $(SRC)cancel.c            $S
  102.  
  103. $(OBJ)check_port.o:        $(SRC)check_port.c        $S
  104.  
  105. $(OBJ)check_result.o:    $(SRC)check_result.c    $S
  106.  
  107. $(OBJ)cleanup.o:        $(SRC)cleanup.c            $S
  108.  
  109. $(OBJ)console.o:        $(SRC)console.c            $S
  110.  
  111. $(OBJ)create_rxi.o:        $(SRC)create_rxi.c        $S
  112.  
  113. $(OBJ)delete_port.o:    $(SRC)delete_port.c        $S
  114.  
  115. $(OBJ)diag.o:            $(SRC)diag.c            $S
  116.  
  117. $(OBJ)dispatch.o:        $(SRC)dispatch.c        $S
  118.  
  119. $(OBJ)handle_return.o:    $(SRC)handle_return.c    $S
  120.  
  121. $(OBJ)init.o:            $(SRC)init.c            $S
  122.  
  123. $(OBJ)launch.o:            $(SRC)launch.c            $S
  124.  
  125. $(OBJ)lock.o:            $(SRC)lock.c            $S
  126.  
  127. $(OBJ)misc.o:            $(SRC)misc.c            $S
  128.  
  129. $(OBJ)rexxcom.o:        $(SRC)rexxcom.c            $S
  130.  
  131. $(OBJ)set_result.o:        $(SRC)set_result.c        $S
  132.  
  133. $(OBJ)to_rexx.o:        $(SRC)to_rexx.c            $S
  134.  
  135.